package com.yiyuan.app.entity.result;

import com.guaike.core.entity.annotation.DictConvert;
import com.guaike.core.entity.annotation.NumberAutoConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("松鼠日记单条实体")
@Data
public class TaskVO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("奖励松果数")
    @NumberAutoConvert
    private Integer prize;

    @ApiModelProperty("是否解锁")
    private Boolean unlock;

    @ApiModelProperty("解锁等级")
    private Integer vipLevel;

    @ApiModelProperty("达标条件")
    @NumberAutoConvert
    private Integer condition;

    @ApiModelProperty("当前进度")
    @NumberAutoConvert
    private Integer currentProgress;

    @ApiModelProperty("（0:去完成，1:待领取，2:已领取）")
    @DictConvert(code = BusinessDictCodeConstant.M_PRIZE_STATUS)
    private Integer status;

}
